package com.itheima.threadDemo.Demo11;

public class Desk {
    private int hamburger;
    private boolean flag = false;
    //往桌子上放汉堡
    public void put(int hamburger){
        this.hamburger = hamburger;
        System.out.println("厨师正在放第"+hamburger+"个汉堡");
    }
    //从桌子上区汉堡
    public void take(){
        System.out.println("吃货正在吃第"+hamburger+"个汉堡");
    }

    public int getHamburger() {
        return hamburger;
    }

    public void setHamburger(int hamburger) {
        this.hamburger = hamburger;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
